function validate(){

    var subgr = document.getElementById('sltSubgr');
	var cat = document.getElementById('sltCat');
	var from  = document.getElementById('sltFrom');
	var year=document.getElementById('sltYr');
	var month=document.getElementById('sltMon');

	var subgrs = document.getElementById('sltSubgr').value;
	var cats = document.getElementById('sltCat').value;
	var froms  = document.getElementById('sltFrom').value;
	var years=document.getElementById('sltYr').value;
	var months=document.getElementById('sltMon').value;


	if(madeSelection(subgr, "Select the Subject Code ")){
		if(madeSelection(cat, "Select the Related Catorgery ")){
		      if(madeSelection(from, "Select the Commented Catorgery ")){
		              if(madeSelection(year, "Select the Year ")){
		                   if(madeSelection(month, "Select the Month ")){
			                             return true;
		
		                   
						   }
					        return false;
					   }
			         return false;
					 }
	           return false;
		      }
	     return false;
	}
	return false;
}




	function onDel(id)
{
		
		//currentRow = td.parent;
if(confirm("Do You Want To Delete?")){

if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
		 var tr = document.getElementById(id).parentNode.parentNode;
		 tr.parentNode.removeChild(tr);

    }
  }

    
	var queryString = "?id=" + id; 
	

	
xmlhttp.open("GET","../logic/delete/feedback_delete.php"+queryString ,true);
xmlhttp.send();
}
}

